package club.chenlinghong.order.enums;

import lombok.Getter;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description TODO
 * @Author chenlinghong
 * @Date 2019/7/1 15:03
 * @Version V1.0
 */
@Getter
public enum ResultEnum {

    PARAM_ERROR(1000, "参数错误"),

    CART_EMPTY(2000, "购物车为空");

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
